<%-- 
    Document   : gestionAgregarComponente
    Created on : 24/09/2013, 09:04:05 PM
    Author     : Andres
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<h3>Agregar Componentes</h3>  
<form id="altaComponente">
    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">    
            <tr>
                <th valign="top">
                    Nombre: 
                </th> 
                <td>
                    <select id="tipo" name="tipo">
                            <option value="">[Tipo]</option>
                            <s:iterator value="listaTipoComponentes" status="estatus">
                                <option value="<s:property value='IdTipo'/>"><s:property value="Tipo"/></option>   
                            </s:iterator>
                    </select> 
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="etipo">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    Caracteristicas: 
                </th> 
                <td>
                    <input type="text" class="inp-form" name="caracteristicas" id="caracteristicas"/>
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="ecaracteristicas">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    Estatus: 
                </th> 
                <td>
                    <input type="text" class="inp-form" name="estatus" id="estatus"/>
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="eestatus">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    Cantidad: 
                </th> 
                <td>
                    <input type="text" class="inp-form" name="cantidad" id="cantidad"/>
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="ecantidad">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="button" class="btn" value="Cancelar" id="btnRegresar">
                    <input type="submit" class="btn" value="Aceptar" name="btnAltaComponente" id="btnAltaComponente">
                </td>    
            </tr> 
    </table>
</form>